package com.lxm.common.contants;

public abstract class ItemConstants {
    // 定义一个库存不足的常量
    public static final String STACK_NOT_ENOUGH = "库存不足!";
    // 新增商品失败
    public static final String ADD_ITEM_FAIL = "新增商品失败!";
    // 商品不存在
    public static final String ITEM_NOT_EXIST = "商品不存在!";

    public static final String MODIFY_ITEM_SUCCESS = "修改商品信息成功";
    public static final String MODIFY_ITEM_FAIL = "修改商品信息失败";
    public static final String REMOVE_ITEM_FAIL = "删除商品失败";
    public static final String REMOVE_ITEM_SUCCESS = "删除商品成功";
    public static final String ITEM_TYPE_DELETE_FAIL = "商品类型删除失败";
    public static final String ITEM_TYPE_UPDATE_FAIL = "商品类型更新失败";
    public static final String ITEM_TYPE_ADD_FAIL = "商品类型添加失败";

    // 商品类型Redis的key
    public static final String ITEM_TYPE_KEY = "itemType";
    //分页大小常量
    public static final int ITEM_PAGE_SIZE = 18;
    // 商品标题的截取长度
    public static final int ITEM_TITLE_BRIEF = 12;
}
